//
//  TYPropsSystem.m
//  AngerDragon
//
//  Created by gaotime_macbook_2 on 11-12-9.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "TYPropsSystem.h"


@implementation TYPropsSystem

@synthesize m_p_props_array;
- (id) init {
	
	if ((self = [super init]))
	{
		CCLOG(@"%@: %@", NSStringFromSelector(_cmd), self);
		m_p_props_array = [[CCArray alloc] initWithCapacity:3];/// 初始设置3个道具槽
		
	}
	
	return self;
}

- (void) dealloc {
	CCLOG(@"%@: %@", NSStringFromSelector(_cmd), self);
	[m_p_props_array release];
	
	[super dealloc];
}

- (void) addProps:(NSInteger) a_n_prpos {
	NSNumber *a_p_cls_prpos = [[NSNumber alloc] initWithInt:a_n_prpos];
	[m_p_props_array addObject:a_p_cls_prpos];
}
@end
